#! /bin/bash
read filename
read url
allFilename=$(pwd)/${filename}
echo "${allFilename}"
if test -w $allFilename && test -n $url; then
  echo $url > ${allFilename}
  echo 'write ok'
else
  echo 'error'
fi